<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> 
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
<div class="adv"></div>
<div class="main" style="height:300px">
	<div class="mainLeft">
		<form:form modelAttribute="member" action="${contextPath }/user/validateUser" method="post">
			<div style="text-align: center;">
				<div>
					<spring:message code="userName"/>
					<form:input path="userName" size="30px"/>
				</div>
				<div class="errorbasic"><form:errors path="userName"/></div>
				<div>
					<spring:message code="password"/>
					<form:password path="password" size="30px"/>
				</div>
				<div class="errorbasic"><form:errors path="password"/></div>
				<div class="errorbasic"><form:errors path="invalidUserNameOrPassword"/></div>
				<div>
					<input type="submit" value="登录" class="baseBtn2 sumitbtn"/>
					<input type="button" value="注册" id="register" class="baseBtn2 sumitbtn"/>	
				</div>
			</div>
				
			
		</form:form>
	</div>
	
	<div class="mainRight">
	</div>
	
</div>